package whf.framework.web.struts;

import javax.persistence.Transient;
import org.apache.struts.action.ActionForm;

/**
 * @author wanghaifeng
 *
 */
public class AbstractStrutsForm  extends ActionForm{
	private final static long serialVersionUID = 0;

	/**
	 * @property String:webMethod
	 * Struts webMethod
	 */
	@Transient
	private String webMethod;
	
	@Transient
	private boolean initializedByWeb;

	final public String getWebMethod() {
		return webMethod;
	}

	final public void setWebMethod(String method) {
		this.webMethod = method;
	}

	/**
	 * @return Returns the createdByStructs.
	 */
	public final boolean isCreatedByStruts() {
		return this.initializedByWeb;
	}
	
	/**
	 * @modify wanghaifeng Aug 10, 2006 11:26:23 PM
	 * 初始化属性值，初始化过程将在DispatchAction中调用
	 * @param request
	 */
	final public void initializedByWeb(){
		this.initializedByWeb = true;
	}
}
